<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta name="layout" content="main">
    <title>${facility.name} Forums</title>
  </head>
  <body>
    
    <h1>${facility.name} Forums</h1>
    <g:each var="forum" in="${forumList}" status="i">
       <g:link controller="Forum" action="view" params="[facilityName: forum.facility.name, topic: forum.topic]">${forum.topic}</g:link>
       <sec:ifAnyGranted roles="ROLE_MODERATOR, ROLE_OWNER">
         <g:link style="margin-left: 15px" action="deleteForum" params="[name: facility.name, topic: forum.topic]">Delete</g:link>
       </sec:ifAnyGranted>
       </br>
    </g:each>
  </body>
</html>
